package com.mdb.open.trade.service.trade.handle.enums;

import com.mdb.bc.api.enums.ApiEnum;

/**
 * 外联返回码枚举
 */
public enum OutReachReturnCodeEnum implements ApiEnum<String> {

    CORE_PREFIX("CORE_", "核心系统"),
    QCC_PREFIX("QCC_", "企查查系统"),
    EMAIL_PREFIX("EMAIL_", "邮件系统"),
    SMS_PREFIX("SMS_", "短信系统"),

    EAMIL_CONNECT_TIMEOUT(EMAIL_PREFIX.code + "CONNECT_TIMEOUT", "邮件系统连接超时"),
    EMAIL_SOCKET_TIMEOUT(EMAIL_PREFIX.code + "SOCKET_TIMEOUT", "邮件系统socket超时"),
    SMS_CONNECT_TIMEOUT(SMS_PREFIX.code + "CONNECT_TIMEOUT", "短信系统连接超时"),
    SMS_SOCKET_TIMEOUT(SMS_PREFIX.code + "SOCKET_TIMEOUT", "短信系统socket超时"),
    CORE_CONNECT_TIMEOUT(CORE_PREFIX.code + "CONNECT_TIMEOUT", "核心系统连接超时"),
    CORE_SOCKET_TIMEOUT(CORE_PREFIX.code + "SOCKET_TIMEOUT", "核心系统socket超时"),
    QCC_CONNECT_TIMEOUT(QCC_PREFIX.code + "CONNECT_TIMEOUT", "企查查系统连接超时"),
    QCC_SOCKET_TIMEOUT(QCC_PREFIX.code + "SOCKET_TIMEOUT", "企查查系统socket超时");

    protected String code;
    protected String codeDesc;

    OutReachReturnCodeEnum(String code, String codeDesc){
        this.code =code;
        this.codeDesc = codeDesc;
    }

    @Override
    public String getValue() {
        return code;
    }

    @Override
    public String getText() {
        return codeDesc;
    }
}
